vpath *.h /include
vpath *.cpp /src
ROOT_DIR:= $(shell pwd)
DATE:= $(shell date)
CMCC_OBJ=station_cmcc.o
CUCC_OBJ=station_cucc.o
.PHONY:cmcc_v cucc_v clean
cmcc_v:  $(CMCC_OBJ)
	@echo date is :$(DATE):Executed CMCC IN  $(ROOT_DIR) ---
	g++ $(CMCC_OBJ) -o cmcc_v
	@echo Executed successfully!---------------------------
$(CMCC_OBJ):$(ROOT_DIR)/src/station.cpp  $(ROOT_DIR)/include/config.h
	g++ -g -Wall -DCMCC -c $(ROOT_DIR)/src/station.cpp -o $(CMCC_OBJ)

cucc_v: $(CUCC_OBJ)
	@echo date is :$(DATE):Executed CUCC IN $(ROOT_DIR) ---------
	g++ $(CUCC_OBJ) -o cucc_v
	@echo Executed successfully!---------------------------
$(CUCC_OBJ):$(ROOT_DIR)/src/station.cpp  $(ROOT_DIR)/include/config.h
	g++ -g -Wall -DCUCC -c $(ROOT_DIR)/src/station.cpp -o $(CUCC_OBJ)
clean:
	rm -rf $(CMCC_OBJ) $(CUCC_OBJ)  cmcc_v cucc_v
